<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>数据字典</title>
    <%@include file="/WEB-INF/views/commons/commons.jsp" %>
    <script type="text/javascript" src="/static/js/system/dictionary.js"></script>
</head>
<body>

<div id="cc" class="easyui-layout" style="width:600px;height:400px;" fit="true">
    <div data-options="region:'west'" style="width:50%;">

            <table id="dic_datagrid"></table>
            <!--员工的工具栏-->
            <div id="tb">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
                   onclick="add()">添加</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true"
                   onclick="edit()">编辑</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
                   onclick="remove()">删除</a>
            </div>


            <div id="dic_dialog">
                <form id="dic_form" method="post">
                    <input type="hidden" id="dicId" name="id">

                    <table align="center" style="margin-top: 15px">

                        <tr>
                            <td>数据名</td>
                            <td><input class="easyui-textbox" name="name">
                            </td>
                        </tr>

                        <tr>
                            <td>数据编号</td>
                            <td><input class="easyui-textbox" name="sn">
                            </td>
                        </tr>

                    </table>
                </form>
            </div>

            <div id="bb">
                <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="save()">保存</a>
                <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel()">关闭</a>
            </div>

    </div>







    <div data-options="region:'center'" style="padding:5px;background:#eee;">

        <table id="single_datagrid"></table>
        <div id="tb2">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
               onclick="add2()">添加</a>
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true"
               onclick="edit2()">编辑</a>
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
               onclick="remove2()">删除</a>
        </div>


        <div id="single_dialog">
            <form id="single_form" method="post">
                <input type="hidden" id="singleId" name="id">

                <table align="center" style="margin-top: 15px">

                    <tr>
                        <td>数据名</td>
                        <td><input class="easyui-textbox" name="name">
                        </td>
                    </tr>

                    <tr>
                        <td>数据简介</td>
                        <td><input class="easyui-textbox" name="introduce" height="50px">
                        </td>
                    </tr>

                    <tr>
                        <td>分类</td>
                        <td><input class="easyui-combobox" name="dictionary.sn" data-options="
                    valueField: 'sn',textField: 'name', panelHeight:'auto',
                    url:'/dictionary/list'
                    ">
                        </td>
                    </tr>

                </table>
            </form>
        </div>

        <div id="bb2">
            <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="save2()">保存</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel2()">关闭</a>
        </div>

    </div>
</div>
</body>
</html>
